package homework6_24.practice3;

import homework6_24.practice3.jiekou.CPU;
import homework6_24.practice3.jiekou.EMS;
import homework6_24.practice3.jiekou.HardDisk;

public class Computer {
	private CPU cpu;
	private EMS ems;
	private HardDisk hardDisk;

	public void setCpu(CPU c) {
		cpu = c;
	}

	public void setEms(EMS e) {
		ems = e;
	}

	public void setHardDisk(HardDisk h) {
		hardDisk = h;
	}

	public void show(){
		System.out.println("计算机信息如下：");
		System.out.println(cpu.toString()+"\n"+ems.toString()+"\n"+hardDisk.toString());
	}
}
